import numpy as np
# Sensor data (Mo, Tu, We, Th, Fr, Sa, Su)
tmp = np.array([1, 2, 3, 4, 3, 4, 4,
                5, 3, 3, 4, 3, 4, 6,
                6, 5, 5, 5, 4, 5, 5])
# 星期天的传感器读数是不准确的，要把星期天的读数改成七天计数的平均值（星期天计数包含在内）


def calc():
    #TODO:


def test_calc():
    calc()
    assert (tmp == [1, 2, 3, 4, 3, 4, 3, 5, 3, 3, 4, 3, 4, 4, 6, 5, 5, 5, 4, 5, 5]).all()
